package com.quanyan.common.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhuo.shi on 2016/5/31.
 * 公用视频对象
 */
public class Video implements Serializable{
    private static final long serialVersionUID = -1426320557356077420L;
    /*
    "id"：1，
     "imageUrl":http://www.quncao.com/image/game/ujduasf678hybd.jpg
     "brief":等你来战
     "pv":1800次,
     "duration"：00.01：30,
     "publishTime":2015.10.20 10:20，
     "videoUrl"：http://www.quncao.com/video/game/id67hjsdaf6hsyfn.rmvb
      */
    private int id;
    //视频缩略图url
    private String imageUrl;
    //视频地址
    private String videoUrl;
    //视频简介
    private String brief;
    //浏览量
    private Integer pv;
    //时长
    private Long duration;
    //发布时间
    private Date publishTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    @Override
    public String toString() {
        return "Video{" +
                "id=" + id +
                ", imageUrl='" + imageUrl + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                ", brief='" + brief + '\'' +
                ", pv=" + pv +
                ", duration=" + duration +
                ", publishTime=" + publishTime +
                '}';
    }
}
